package com.ruoyi.backend.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.backend.pojo.RestorationProject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RestorationDataVO {

    private Long id;

    private Integer restorationId; // 对应 restoration_project 表的外键

    private String reportType;

    private LocalDate reportTime; // 使用 LocalDate 映射 DATE 类型

    private String fileType;

    private String minioBucketName;

    private String minioFileName;

    private String reportNote;

    private Integer epsgCode;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime updateTime;

    private RestorationProject restorationProject;
}
